﻿using Npoi.Mapper;
using NPOI.SS.Formula.Functions;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using TMV.DTO;
using TMV.DTO.Car;

namespace TMV.Application.Car.Services
{
    public interface ICarServiceDM
    {
        ResultEntity<bool> AddCar(CarModel model);

        ResultPageEntity<CarDTO> GetCarList(Request_Car dto);

        ResultEntity<bool> UpCar(CarModel model);

        ResultEntity<bool> DeCar(Guid id);

        Task<ResultEntity<bool>> ImportCar(List<CarModel> li);

		/// <summary>
		/// 根据车牌获取车辆类型 1.进煤车，2.转煤车，3.洒煤车，4.其他车
		/// </summary>
		/// <param name="PlateNumber"></param>
		/// <returns></returns>
		int? GetCarType(string PlateNumber);
    }
}
